AM_CPPFLAGS = -I${top_srcdir}/src/common/compress

LDADD = $(top_builddir)/src/common/compress/libcomp.a 

AM_LDFLAGS=-lpthread -lc -lm -lgtest -ldl ${GCOV_LIB}
CXXFLAGS=-g -Wall #-fprofile-arcs -ftest-coverage
if COVERAGE
CXXFLAGS+=-fprofile-arcs -ftest-coverage
AM_LDFLAGS+=-lgcov
endif
bin_PROGRAMS=test_libcomp

test_libcomp_SOURCES = test_libcomp.cpp

check_SCRIPTS = $(bin_PROGRAMS)
TESTS = $(check_SCRIPTS) 

CLEANFILES = $(check_SCRIPTS)
clean-local:
	-rm -f *.gcov *.gcno *.gcda
